//
//  KMethodTableCell.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "KMethodTableCell.h"
#import "FitHeader.h"
#import <UIImageView+WebCache.h>
#import "FontSizeSingleTon.h"
#define FontSize [[FontSizeSingleTon shareFontSize]array]
@implementation KMethodTableCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatViews];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _stepImage.frame = CGRectMake(20 * wt, 20 *ht, 335 * wt, 200 * ht);
    _numberLabel.frame = CGRectMake(_stepImage.frame.origin.x, _stepImage.frame.origin.y + _stepImage.frame.size.height + 10 * ht, 30 * wt, 20 * ht);
    _stepLabel.frame = CGRectMake(_numberLabel.frame.origin.x + _numberLabel.frame.size.width, _numberLabel.frame.origin.y, 315 * wt, _numberLabel.frame.size.height);
}
-(void)creatViews
{
    _stepImage = [[UIImageView alloc]init];
    [self.contentView addSubview:_stepImage];
    
    _stepLabel = [[UILabel alloc]init];
    _stepLabel.font = [UIFont systemFontOfSize:[FontSize[1] integerValue]];
    [self.contentView addSubview:_stepLabel];
    
    _numberLabel = [[UILabel alloc]init];
    [self.contentView addSubview:_numberLabel];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
